package com.smfx.yxt.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smfx.yxt.daoSqlserver.AttachmentListMapper;
import com.smfx.yxt.model.AttachmentList;
import com.smfx.yxt.page.Page;
import com.smfx.yxt.service.IAttachmentListService;

@Service("attachmentListService")
public class AttachmentListServiceImpl implements IAttachmentListService {

	@Autowired
	private AttachmentListMapper attachementListMapper;
	
	@Override
	public int insertSelective(AttachmentList record) {
		return attachementListMapper.insertSelective(record);
	}

	@Override
	public int updateByPrimaryKeySelective(AttachmentList record) {
		return attachementListMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<AttachmentList> selectByPage(Page<AttachmentList> page) {
		return attachementListMapper.selectByPage(page);
	}

	@Override
	public int updateRelationId(AttachmentList record) {
		return attachementListMapper.updateRelationId(record);
	}

	@Override
	public int selectHandingCountByTeacherId(AttachmentList record) {
		return attachementListMapper.selectHandingCountByTeacherId(record);
	}

	@Override
	public int selectCountByParam(AttachmentList record) {
		return attachementListMapper.selectCountByParam(record);
	}

	@Override
	public List<AttachmentList> selectHandingList(AttachmentList record) {
		return attachementListMapper.selectHandingList(record);
	}

	@Override
	public List<AttachmentList> queryAttachmentListByRelationId(Map<String, Object> map) {
		return attachementListMapper.queryAttachmentListByRelationId(map);
	}

	@Override
	public List<AttachmentList> queryAttachmentListByRole(Map<String, Object> map) {
		return attachementListMapper.queryAttachmentListByRole(map);
	}

}
